package com.small.nacos.client.utils;

import com.alibaba.nacos.api.PropertyKeyConst;
import small.common.core.util.StringUtil;

import java.util.Properties;

/**
 * @Author zhoujin
 * @Date 2022/11/18 14:51
 */
public class ParamUtil {

    private static double perTaskConfigSize = 3000;

    public static String parseNamespace(Properties properties) {

        String namespace = properties.getProperty(PropertyKeyConst.NAMESPACE);

        return StringUtil.isNotBlank(namespace) ? namespace.trim() : StringUtil.EMPTY;
    }

    /**
     * 获取任务配置大小
     * @return
     */
    public static double getPerTaskConfigSize() {
        return perTaskConfigSize;
    }
}
